package com.example.controller;

import com.example.service.HelloServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springcloud
 * @description: 服务调用控制层
 * @author: ChenZhiXiang
 * @create: 2019-06-03 11:11
 **/
@RestController
public class HelloController {

    @Autowired
    private HelloServiceImpl helloService;

    @GetMapping("/ribbon")
    public String ribbon(){
        return helloService.ribbon();
    }

}
